home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
examples
/
lja
< prev
next >
Wrap
Text File
|
1996-04-13
|
511b
|
38 lines
#
# The examples from the Linux Journal Article...
#
#
# Example 1
#
\ type t.dat
\ type gtvec
rfile gtvec
while (length (line = getline ("examples.t/dat")))
{
tdat.[line.[1]] = gtvec (line);
}
plpoint (8:1:-1);
plstyle ("line-point");
plegend( members (tdat) );
pltitle ("Test Data");
plot (tdat);
#
# Example 2
#
require surspl
z1 = rand(10,10);
x1 = y1 = 1:10;
x2 = y2 = 1:10:0.25;
z2 = surspl (x2, y2, x1, y1, z1);
plmesh (<< x=x1 ; y=y1 ; z=z1 >>);
pause ();
plmesh (<< x=x2 ; y=y2 ; z=z2 >>);